<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>左边固定，右边自适应</title>
    <style>
      .container {
        height: 300px;
        background-color: yellowgreen;
        display: flex;
        /* min-width: 1000px; */
      }
      .box1 {
        width: 200px;
        border: 1px solid red;
        height: 100%;
      }
      .box2 {
        border: 1px solid blue;
        height: 100%;
        flex: 1;
      }
    </style>
  </head>
  <body>
    <div class="container">
      <div class="box1">111</div>
      <div class="box2">222</div>
    </div>
  </body>
</html>
